import { defineStore } from 'pinia'

import { ref } from 'vue'

export const useCustomMenuStore = defineStore('useCustomMenuStoreName', () => {
    const customSonMenu = ref<any>([])
    const activeIndex=ref()
    const showCom=ref()
    const getKey=ref<string>()
    return {
        customSonMenu,
        activeIndex,showCom,getKey
    }
},
    {
        persist: {
            storage: sessionStorage,
            paths: ['customSonMenu','activeIndex'],
        },
    })

